{extend name="common/layout" /}

{block name="contents"}
<div class="row  border-bottom white-bg dashboard-header">
    <div class="col-md-12">
        <h2>欢迎您,{$user.name|default=''}!</h2>
    </div>
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">系统信息</div>
            <div class="panel-body">
                <table class="table table-bordered table-hover">
                    <tbody>
                        <tr>
                            <td>操作系统</td>
                            <td><?php echo php_uname('s');?></td>
                        </tr>
                        <tr>
                            <td>服务器地址</td>
                            <td><?php echo $_SERVER['HTTP_HOST'];?></td>
                        </tr>
                        <tr>
                            <td>服务器ip</td>
                            <td><?php echo $_SERVER['SERVER_ADDR'];?></td>
                        </tr>
                        <tr>
                            <td>PHP版本</td>
                            <td><?php echo PHP_VERSION;?></td>
                        </tr>
                        <tr>
                            <td>PHP运行方式</td>
                            <td><?php echo php_sapi_name();?></td>
                        </tr>
                        <tr>
                            <td>Mysql版本</td>
                            <td>{$mysql}</td>
                        </tr>
                        <tr>
                            <td>ThinkPHP</td>
                            <td>{$tp_version}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">开发</div>
            <div class="panel-body">
                <table class="table table-bordered table-hover">
                    <tbody>
                        <tr>
                            <td>开发者</td>
                            <td>柳周侯爷(<a href="mailto:lzhy@lzhy.me">lzhy@lzhy.me</a>)</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{/block}